package com.ryskoo.common.dto.customer;

import com.ryskoo.common.dto.BasicDTO;


/**
 * 优惠设置
 * @author BeHappy
 */
public class VendorDiscountsDTO extends BasicDTO {

	private static final long serialVersionUID = -7873434139453555410L;
	/**
	 * 卖家uuid
	 */
	private String vendorUuid;
    
	/** 满减是否开启 */
    private boolean mjOpen;

	/** 新用户立减是否开启 */
	private boolean ljOpen;

	/**
	 * 满金额money1
	 */
	private double money1;

	/**
	 * 减金额free1
	 */
	private double free1;

	/**
	 * money2
	 */
	private double money2;

	/**
	 * free2
	 */
	private double free2;

	/**
	 * money3
	 */
	private double money3;

	/**
	 * free3
	 */
	private double free3;


	/**
	 * 立减金额
	 */
	private double ljFree;
	
	/** 商户优惠个数 */
	private int discountNum = 0;

	public String getVendorUuid() {
		return vendorUuid;
	}

	public void setVendorUuid(String vendorUuid) {
		this.vendorUuid = vendorUuid;
	}

	public boolean isMjOpen() {
		return mjOpen;
	}

	public void setMjOpen(boolean mjOpen) {
		this.mjOpen = mjOpen;
	}

	public boolean isLjOpen() {
		return ljOpen;
	}

	public void setLjOpen(boolean ljOpen) {
		this.ljOpen = ljOpen;
	}

	public double getMoney1() {
		return money1;
	}

	public void setMoney1(double money1) {
		this.money1 = money1;
	}

	public double getFree1() {
		return free1;
	}

	public void setFree1(double free1) {
		this.free1 = free1;
	}

	public double getMoney2() {
		return money2;
	}

	public void setMoney2(double money2) {
		this.money2 = money2;
	}

	public double getFree2() {
		return free2;
	}

	public void setFree2(double free2) {
		this.free2 = free2;
	}

	public double getMoney3() {
		return money3;
	}

	public void setMoney3(double money3) {
		this.money3 = money3;
	}

	public double getFree3() {
		return free3;
	}

	public void setFree3(double free3) {
		this.free3 = free3;
	}

	public double getLjFree() {
		return ljFree;
	}

	public void setLjFree(double ljFree) {
		this.ljFree = ljFree;
	}

	public int getDiscountNum() {
		int num = 0;
		if (this.isMjOpen()) {
			num ++ ;
		}
		
		if (this.isLjOpen()) {
			num ++ ;
		}
		return num;
	}

	public void setDiscountNum(int discountNum) {
		this.discountNum = discountNum;
	}

	@Override
	public String toString() {
		return "VendorDiscountsDTO{" +
				"vendorUuid='" + vendorUuid + '\'' +
				", mjOpen=" + mjOpen +
				", ljOpen=" + ljOpen +
				", money1=" + money1 +
				", free1=" + free1 +
				", money2=" + money2 +
				", free2=" + free2 +
				", money3=" + money3 +
				", free3=" + free3 +
				", ljFree=" + ljFree +
				'}';
	}
}
